package com.king.designpatterns.行为模式.观察者模式;

/**
 * 具体观察者 - 修改按钮坐标的观察者
 *
 * @author king
 * @date 2021-06-10 18:39
 */
public class ChangeCoordinateObserver implements ClickableObserver{
    @Override
    public void clicked(Clickable clickable) {
        Button b = (Button) clickable;
        b.x = 100;
        b.y = 90;
    }
}
